let recursionRoutes = (menulist = [], allRoutes = []) => {
  //用于放置对比之后的路由数据
  let userRoutes = [];
  menulist.forEach((menu) => {
    //遍历出来的menu就是其中一个路由的数据
    allRoutes.forEach((route) => {
      //判断menu跟route是否相等,相等的值push进空数组里
      if (menu.title === route.meta.title) {
        if ((menu.children && menu.children, length > 0)) {
          recursionRoutes(menu.children, allRoutes.route);
        }
        userRoutes.push(route);
      }
    });
  });
  return userRoutes;
};
export default recursionRoutes;
